import request from '@/utils/request'

export default {

//============================小结api===============================================
    /**
     *  添加小结
     * @param {*} videoInfo 小结信息
     */
    addVideoInfo(videoInfo){
        return request({
            url:'/eduservice/video/add/video',
            method:'post',
            data:videoInfo
        });
    },

    /**
     *  根据id 查询 小结信息
     * @param {} id  小结id
     */
    getVideoInfo(id){
        return request({
            url:'/eduservice/video/find/video/'+id,
            method:'get'
        });
    },
    /**
     *  修改 小结信息
     * @param {*} videoInfo 
     */
    editVideoInfo(videoInfo){
        return request({
            url:'/eduservice/video/edit/video',
            method:'post',
            data:videoInfo
        });
    },

    // 删除 小结根据 id
    removeVideo(id){
        return request({
            url:'/eduservice/video/remove/video/'+id,
            method:'get'
        });
    },
    
    /** 
     *  删除视频 根据id
     * @param {*} id 视频id
     */
    removeVideoAliyun(id){
        return request({
            url:'/eduvod/video/remove/aliyun/video/'+id,
            method:'delete'
        });
    }
}